Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

15 wiersze
407 B

  1. <template>
  2. <div />
  3. </template>
  4. <script setup>
  5. import { articleUrl, useArticleDetail } from '~/composables/useArticle'
  6. // 兼容旧 sitemap 中的教程详情地址,并收敛到当前资讯规范路径。
  7. const nuxtApp = useNuxtApp()
  8. const { detail } = await useArticleDetail()
  9. await nuxtApp.runWithContext(() =>
  10. navigateTo(articleUrl(detail.value), { redirectCode: 301, replace: true }))
  11. </script>